.PHONY: run build down help

# Get version from pyproject.toml
VERSION := $(shell grep '^version =' pyproject.toml | sed 's/version = "\(.*\)"/\1/')

# Show help
help:
	@echo "Available commands:"
	@echo "  build			- Build Docker image"
	@echo "  run			- Run Docker container"
	@echo "  down			- Down Docker container"
	@echo "  help			- Show this help message"


# Build Docker image with version
build:
	docker build -t onboard-agent:$(VERSION) .

# Start with docker-compose
run:
	docker-compose down
	docker-compose up -d

down:
	docker-compose down

